package com.lxk.util.exception;

import com.lxk.vo.result.CodeMsg;

/**
 * @author JohnSoybean
 * @create 2020/3/19 15:34
 * @description 全局异常
 */
public class GlobalException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    private CodeMsg cm;

    public GlobalException(CodeMsg cm){
        super(cm.getCode()+"/"+cm.getMsg());
        this.cm=cm;
    }

    public CodeMsg getCm() {
        return cm;
    }
}
